package cn.sofwin.day0106;

import java.util.Scanner;

public class Test01 {
    public static void main(String[] args) {
        int a = Integer.SIZE;
        System.out.println(a);
        while(true) {
            Scanner sc = new Scanner(System.in);
            System.out.println("是否是会员，是输入y/Y，否用其它字符：");
            String judge = sc.next();
            System.out.println("请输入购物金额：");
            double money = sc.nextDouble();
            if("y".equals(judge) || "Y".equals(judge)){
                if(money >= 200){
                    money *= 0.75;
                }else {
                    money *= 0.8;
                }
            }else if(money >= 100){
                money *= 0.9;
            }
            System.out.println("支付金额：" + money);
        }
    }
}
